<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST">
    <input type="hidden" name="row[scenario]" value="edit">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" type="text" name="row[name]" value="{$row.name|htmlentities}" title="" placeholder="选填">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('售价')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" type="number" name="row[price]" value="{$row.price|htmlentities}" title="" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('金额')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-amount" class="form-control" type="number" name="row[amount]" value="{$row.amount|htmlentities}" title="" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('次数限制')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_limit" class="form-control" type="number" name="row[user_limit]" value="{$row.user_limit|htmlentities}" title="" placeholder="默认0表示不限制">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-note" class="form-control" type="text" name="row[note]" value="{$row.note|htmlentities}" title="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', $statusList, $row['status'], ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button class="btn btn-success btn-embossed disabled" type="submit">{:__('OK')}</button>
            <button class="btn btn-default btn-embossed" type="reset">{:__('Reset')}</button>
        </div>
    </div>
</form>